<template>
  <div class="app">
    <h1>{{msg}}</h1>
    <!-- 通过父组件给子组件传递函数类型的props实现：子给父传递数据 -->
    <School/>

    <Student/>

  </div>
</template>

<script>
import School from "./components/School.vue";
import Student from "./components/Student.vue";
export default {
  name: "App",
  components: {
    School,
    Student
  },
  data () {
    return {
      msg:"789"
    }
  },

  
};
</script>

<style>
.app{
background-color: grey;
padding: 5px;
}
</style>